﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// “空白页”项模板在 http://go.microsoft.com/fwlink/?LinkId=234238 上有介绍

namespace otis
{
    /// <summary>
    /// 可用于自身或导航至 Frame 内部的空白页。
    /// </summary>
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();
        }

        private void btnOtis_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(MainPage));
        }

        private void btnCompany_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(views.company.CompanyList));
        }

        private void btnProduct_Click(object sender, RoutedEventArgs e)
        {
            //this.Frame.Navigate(typeof(PageProduct));
            //this.Frame.Navigate(typeof(views.GridviewGroup));
            //this.Frame.Navigate(typeof(views.product.Product));
            this.Frame.Navigate(typeof(views.product.ProductList));
        }

        private void btnProject_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(views.project.ProjectList));
        }

        private void btnSetup_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(PageSetup));
        }

        private void btnService_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(PageService));
        }

        private void btnHistory_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(PageHistory));
        }

        private void btnHelp_Click(object sender, RoutedEventArgs e)
        {
            this.Frame.Navigate(typeof(PageUseHelp));
        }
    }
}
